package io.renren.modules.gasstation.gasstationenterprise.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.gasstation.gasstationenterprise.entity.GasStationEnterpriseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author：T-weiwei
 * @Description: 加油站企业数据层
 * @Email：tweiwei@aliyun.com
 * @CreateDate：2022-01-10-下午3:35
 * @CopyRight：http://www.huaxun.ink/
 * @Hint： This content is limited to the internal circulation of HuaXun Hi Tech Co., Ltd.,
 * and is forbidden to be leaked and used for other commercial purposes
 **/
@Mapper
public interface GasStationEnterpriseDAO extends BaseMapper<GasStationEnterpriseEntity> {

    /**
     * 根据社会信用代码获取该企业是否存在
     * @param enterpriseCode 社会信用代码
     * @return 1: 存在 null: 不存在
     */
    Integer isExistEnterpriseByEnterpriseCode(@Param("enterpriseCode") String enterpriseCode);
}
